package com.baidu.project15.chart32;

public class Client {
    public static void display(AbstractAggregate abstractAggregate){
        AbstractIterator i = abstractAggregate.createIterator();
        System.out.println("分页==========");
        i.paging(3,27);
        System.out.println("当前页的上一页=========");
        i.previousPage();
        System.out.println("当前页的下一页==========");
        i.nextPage();
    }

    public static void main(String[] args) {
        AbstractAggregate aa;
        aa = new Aggregate();
        display(aa);

    }
}